package com.linln.admin.app.domain;

import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;
import java.io.Serializable;

@Data
@Entity
@Table(name = "app_version_member")
@EntityListeners(AuditingEntityListener.class)
@DynamicInsert
@DynamicUpdate
public class VersionMember implements Serializable {
    // 主键
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    private Long version_id;

    private Long user_id;
}
